package com.ph.irp.stock.dao;

import java.util.List;

import com.ph.irp.model.PStockOrder;

public interface StockOrderDao {
	
	/**
	 * 新增采购订单
	 * @param stockOrder 采购订单model
	 */
	void addStockOrder(PStockOrder stockOrder)throws Throwable;
	
	/**
	 * 修改采购订单
	 * @param stockOrder 采购订单model
	 */
	void editStockOrder(PStockOrder stockOrder)throws Throwable;
	
	/**
	 * 删除采购订单，可删多条记录
	 * @param ids 采购订单的id
	 */
	void deleteStockOrder(String[] ids)throws Throwable;
	/**
	 * 查询采购订单id
	 * @param code 采购订单编号
	 * @return 返回int 类型id
	 * @throws Throwable 抛出异常
	 */
	int getStockOrderId(String code) throws Throwable;
	/**
	 * 查询所有采购订单
	 * @return
	 */
	List<PStockOrder> getAllStockOrders()throws Throwable;
	
	//动态查询采购订单
	List<PStockOrder> getStockOrdersByCondition(PStockOrder stockOrderModel,String startDate,String endDate) throws Throwable;
	
	//根据id查询采购订单
	PStockOrder getStockOrderById(int stockOrderId)throws Throwable ;
	
	
}
